package com.source.labelAndBarcode.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.source.labelAndBarcode.entity.BarcodeGrant;
import com.baomidou.mybatisplus.extension.service.IService;
import com.source.labelAndBarcode.vo.BarcodeGrantVo;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Joey
 * @since 2021-02-23
 */
public interface BarcodeGrantService extends IService<BarcodeGrant> {

    List<BarcodeGrantVo> findBarcodeGrantAll();

    IPage<BarcodeGrantVo> findBarcodeGrantAllOnPagination(Page<BarcodeGrantVo> page);

    BarcodeGrantVo findById(String id);

    int getGrantCountByTime(Date fromTime, Date toTime);

    IPage<BarcodeGrantVo> findByKeyWord(Page<BarcodeGrantVo> page, String keyWord);
}
